@layout("/common/_container.html"){
<style>ul{padding:0;}.nav_ul{border-bottom:5px solid #30add2;margin-bottom:15px;}.nav_ul>li>a{color:#565656;border:1px solid #dddddd;}.nav_table{margin-top:10px;}.ul_flex{display:flex;padding:0;}.ul_flex > li{flex:1;}.ul_flex ul{padding:0;}.ul_flex ul > li{line-height:52px;}.ul_flex span{display:inline-block;width:110px;}.home_box{border:1px solid white;border-radius:5px;overflow:hidden;padding-bottom:30px;}.nav-tabs > li.active > a,.nav-tabs > li.active > a:hover,.nav-tabs > li.active > a:focus{background:#30add2;border-bottom:1px solid #30add2;color:white;}#navBox>li{width:130px;text-align:center}</style>
<div class="ibox float-e-margins ">
    <div class="ibox-content" id="addVisitedInfoForm">
        <div id="isDealInfoForm">
            <div style="display: none">
                <input id="arrears" value="0">
                <input type="hidden" id="sortMap" value="">
                <input type="hidden" id="id" value="${consultantInfo.id}">
                <input type="hidden" id="customerId" value="${customerId}">
                <input type="hidden" id="reservationsId" value="${consultantInfo.reservationsId}">
                <input type="hidden" id="userName" value="${userName}">
                <input type="hidden" id="iconType" value="">
                <input type="hidden" id="finnallyTime" value="">
                <input type="hidden" id="payServiceId" value="">
                <input type="hidden" id="remarks" value="">
            </div>
            <div class="row">
                <div id="contentBox">
                    <div class="home_box" style="position: relative">
                        <div style="text-align: center;border-top: 3px solid #00a6c9;border-bottom: 3px solid #00a6c9;"><#doctor_seeDiagnosisss  id="doctor_seeDiagnosisss" list="${payServiceInfoList}"/></div>
                        <div style="margin: 20px 0;position: relative">
                            @if(changePriceInfo == null){
                            <span style="font-size: 20px;color: #333333;">本次可划扣合计：<span style="color: black;font-weight: bold;">${payServiceInfo.serviceActualPay}</span></span>
                            @}
                            @else if(changePriceInfo != null){
                            <span style="font-size: 20px;color: #333333;">本次可划扣合计：<span style="color: black;font-weight: bold;">${payServiceInfo.serviceActualPay-changePriceInfo.serviceActualPay}</span></span>
                            @}
                            <span style="font-size: 20px;color: #333333;">操作医生：<span style="color:red;font-weight: bold;">${payServiceInfo.doctor}</span></span>
                            <button type="button" class="btn" onclick="addSure()" style="position: absolute;right: 5%;top: -7px;background:#30add1;color: white;">确认</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
function addSure(){
    var reservationsId=$("#reservationsId").val();
    $.ajax({
        url: Feng.ctxPath + "/doctorLooked/insert_price",
        type: "post",
        data: {
            reservationsId:reservationsId
        },
        success: function (data) {
            Feng.success('操作成功!');
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        },
        error: function (data) {
            alert('没有权限，请联系管理员!');
        }
    });
}
</script>
@}